[ Mega Script Archive ] [ Frequently Asked Questions ] [ TextCounter ]

How do I make the counter appear in my HTML document?

  • Short Answer:

    Perl:

       <!--#exec cgi="/url/path/to/counter.pl"-->
       <!--#include virtual="/url/path/to/counter.pl"-->

    C++:

       <!--#exec cgi="/url/path/to/counter"-->
       <!--#include virtual="/url/path/to/counter"-->

    Long Answer:

    This program requires the use of Server Side Includes. This means that if your system is enabled to handle Server Side Includes, you will probably have to rename your pages to end in .shtml. You will then have to use a standard Server Side Include call like the one shown above.

    However, if you have renamed your CGI program counter.cgi so it is compatible with your server, just change counter or counter.pl above to counter.cgi.


[ Mega Script Archive ]